package com.xuchen.zhenyang.enums;

import java.util.HashMap;

public enum ReturnTypeEnum {
    TAKE_BY_CUSTOMER(1,"客户送回"),
    DELIVERY_SERVICE(2,"自家取回");

    private int id;
    private String value;

    ReturnTypeEnum(int id, String value){
        this.id = id;
        this.value = value;
    }

    public int getId() {
        return this.id;
    }

    public String getValue() {
        return this.value;
    }

    public static HashMap<Integer,String> getMap(){
        HashMap<Integer,String> map=new HashMap<>();
        ReturnTypeEnum[] values = values();
        for (ReturnTypeEnum enums : values) {
            map.put(enums.id,enums.value);
        }
        return map;
    }

}
